package com.example.boardroom.demo.room;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;
@Dao
public interface TimesDao {
    @Query("SELECT * FROM TimesTable")
    List<TimesTable> TimesTable();

    @Query("SELECT * FROM TimesTable WHERE tid IN (:tids)")
    List<TimesTable> loadAllByIds(int[] tids);

//    @Query("SELECT * FROM TimesTable WHERE first_name LIKE :first AND " +
//            "last_name LIKE :last LIMIT 1")
//    User findByName(String first, String last);

    @Insert
    void insertAll(TimesTable... timesTable);

    @Delete
    void delete(TimesTable timesTable);

    @Query("delete from TimesTable")
    void clear();
}
